@using Rail.Net.Core.Model
@model Station
           
@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Station</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Eva</div>
    <div class="display-field">@Model.Eva</div>

    <div class="display-label">Epa</div>
    <div class="display-field">@Model.Epa</div>

    <div class="display-label">Tisp</div>
    <div class="display-field">@Model.Tisp</div>

    <div class="display-label">ForSale</div>
    <div class="display-field">@Model.ForSale</div>

    <div class="display-label">X</div>
    <div class="display-field">@Model.X</div>

    <div class="display-label">Y</div>
    <div class="display-field">@Model.Y</div>

    <div class="display-label">IsBorder</div>
    <div class="display-field">@Model.IsBorder</div>

    <div class="display-label">BorderName</div>
    <div class="display-field">@Model.BorderName</div>

    <div class="display-label">BorderEva</div>
    <div class="display-field">@Model.BorderEva</div>

    <div class="display-label">BorderCorrection</div>
    <div class="display-field">@Model.BorderCorrection</div>

    <div class="display-label">Ru</div>
    <div class="display-field">@(Model.Ru == null ? "None" : Model.Ru.Code)</div>

    <div class="display-label">Distances1</div>
    <div class="display-field">@(Model.Distances1 == null ? "None" : Model.Distances1.Count.ToString())</div>

    <div class="display-label">Distances2</div>
    <div class="display-field">@(Model.Distances2 == null ? "None" : Model.Distances2.Count.ToString())</div>

    <div class="display-label">RelationDescriptions</div>
    <div class="display-field">@(Model.RelationDescriptions == null ? "None" : Model.RelationDescriptions.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.Id }) |
    @Html.ActionLink("Back to List", "Index")
</p>


